{"modulePath":"github.com/flynn-archive/docker","version":"v1.13.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package errors\n\n## Functions\n\n```go\nfunc NewBadRequestError(err error) error\n```\nNewBadRequestError creates a new API error that has the 400 HTTP status code associated to it.\n\n```go\nfunc NewErrorWithStatusCode(err error, code int) error\n```\nNewErrorWithStatusCode 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.\n\n```go\nfunc NewRequestConflictError(err error) error\n```\nNewRequestConflictError creates a new API error that has the 409 HTTP status code associated to it.\n\n```go\nfunc NewRequestForbiddenError(err error) error\n```\nNewRequestForbiddenError creates a new API error that has the 403 HTTP status code associated to it.\n\n```go\nfunc NewRequestNotFoundError(err error) error\n```\nNewRequestNotFoundError creates a new API error that has the 404 HTTP status code associated to it.\n\n","path":"github.com/flynn-archive/docker/api/errors","name":"errors","synopsis":"","isRedistributable":true}
