fail

fun <T, P> fail(throwable: Throwable?): Response<T, P>

Shortcut to create a failed response