Documentation ¶
Overview ¶
HTTP 4xx Client Error responses from RFC 7231, Section 6.5
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BadRequestStatus = msg.Status{400, "Bad Request"} ForbiddenStatus = msg.Status{403, "Forbidden"} NotFoundStatus = msg.Status{404, "Not Found"} MethodNotAllowedStatus = msg.Status{405, "Method Not Allowed"} ConflictStatus = msg.Status{409, "Conflict"} PreconditionFailedStatus = msg.Status{412, "Precondition Failed"} RangeNotSatisfiableStatus = msg.Status{416, "Range Not Satisfiable"} )
Functions ¶
func MethodNotAllowed ¶
func MethodNotAllowed(supportedMethods ...string) *methodNotAllowed
func RespondMethodNotAllowed ¶
func RespondNotFound ¶
Types ¶
type BadRequest ¶
type BadRequest struct {
DisplayText string
}
func (*BadRequest) WriteHeader ¶
func (badRequest *BadRequest) WriteHeader(client io.Writer) error
Click to show internal directories.
Click to hide internal directories.