ErrorTraits
Table of Contents
- errorFromStatus() : string
- Returns an error type for a given $status_code or an empty string.
Methods
errorFromStatus()
Returns an error type for a given $status_code or an empty string.
protected
static errorFromStatus(int $status_code) : string
Parameters
- $status_code : int
-
A HTTP status code
Return values
string —A key that can be used to determine an error class