package errors
import "github.com/docker/docker/errors"
Index ¶
- func NewBadRequestError(err error) error
- func NewErrorWithStatusCode(err error, code int) error
- func NewRequestConflictError(err error) error
- func NewRequestForbiddenError(err error) error
- func NewRequestNotFoundError(err error) error
Functions ¶
func NewBadRequestError ¶
NewBadRequestError creates a new API error that has the 400 HTTP status code associated to it.
func NewErrorWithStatusCode ¶
NewErrorWithStatusCode allows you to associate a specific HTTP Status Code to an error. The Server will take that code and set it as the response status.
func NewRequestConflictError ¶
NewRequestConflictError creates a new API error that has the 409 HTTP status code associated to it.
func NewRequestForbiddenError ¶
NewRequestForbiddenError creates a new API error that has the 403 HTTP status code associated to it.
func NewRequestNotFoundError ¶
NewRequestNotFoundError creates a new API error that has the 404 HTTP status code associated to it.
Source Files ¶
- Version
- v1.12.0-rc3
- Published
- Jul 1, 2016
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 2 minutes ago –
Tools for package owners.