X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7000c1ebd170001e10807b583a29e9e7e9570b23..4179707fc19db62fd496b54283258cb89e08f78f:/sdk/go/httpserver/error.go diff --git a/sdk/go/httpserver/error.go b/sdk/go/httpserver/error.go index 75ff85336f..7a4233d6c6 100644 --- a/sdk/go/httpserver/error.go +++ b/sdk/go/httpserver/error.go @@ -10,6 +10,11 @@ import ( "net/http" ) +type HTTPStatusError interface { + error + HTTPStatus() int +} + func Errorf(status int, tmpl string, args ...interface{}) error { return errorWithStatus{fmt.Errorf(tmpl, args...), status} }