mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
10 lines
331 B
Go
10 lines
331 B
Go
|
package httputils // import "github.com/docker/docker/api/server/httputils"
|
||
|
import "github.com/docker/docker/errdefs"
|
||
|
|
||
|
// GetHTTPErrorStatusCode retrieves status code from error message.
|
||
|
//
|
||
|
// Deprecated: use errdefs.GetHTTPErrorStatusCode
|
||
|
func GetHTTPErrorStatusCode(err error) int {
|
||
|
return errdefs.GetHTTPErrorStatusCode(err)
|
||
|
}
|