Skip to content

Latest commit

 

History

History
37 lines (32 loc) · 1001 Bytes

File metadata and controls

37 lines (32 loc) · 1001 Bytes

errors

Build Status Report Card GoCover

Collection of HTTP error implementations

HTTP error interface

type Error interface{
  error
  Code() int
}

Implementations

Code Corresponding error type
400 BadRequest
401 Unauthorized
403 Forbidden
404 NotFound
405 MethodNotAllowed
406 NotAcceptable
408 RequestTimeout
409 Conflict
500 InternalServer
501 NotImplemented
503 ServiceUnavailable