Zend Framework
3.0
|
Utility methods. More...
Static Public Member Functions | |
static | getArity ($callable) |
Get the arity of a handler. | |
static | getStatusCode ($error, ResponseInterface $response) |
Determine status code from an error and/or response. | |
Utility methods.
|
static |
Get the arity of a handler.
string | callable | object | $callable |
|
static |
Determine status code from an error and/or response.
If the error is an exception with a code between 400 and 599, returns the exception code.
Otherwise, retrieves the code from the response; if not present, or less than 400 or greater than 599, returns 500; otherwise, returns it.
mixed | $error | |
ResponseInterface | $response |