httpStatus

fun httpStatus(failure: Throwable): Int?

Finds the first typed Spring HTTP status in the cause chain without interpreting messages.

Return

the status code, or null when the chain has no typed HTTP failure

Parameters

failure

the failure to inspect