Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Type ¶
type Type string
Type represents a type of Error returned from the middleware
var ( BadRequestError Type = "bad_request" ForbiddenError Type = "forbidden" NotFoundError Type = "not_found" ConflictError Type = "conflict" InternalServerError Type = "internal" NotImplementedError Type = "not_implemented" MethodNotAllowedError Type = "method_not_allowed" )
Error Types mapped to their text presentations
func TypeForStatusCode ¶
TypeForStatusCode returns the Type that is matched for a given status code. If no Type is found, it will return false.
Click to show internal directories.
Click to hide internal directories.