diff --git a/errors/errors.go b/errors/errors.go index e90a654..c83891a 100644 --- a/errors/errors.go +++ b/errors/errors.go @@ -1,21 +1,21 @@ package errors -func BadRequest(format string, a ...string) error { - return NewError(400, format, a) +func BadRequest(format string, a ...interface{}) error { + return NewError(400, format, a...) } -func Unauthorized(format string, a ...string) error { - return NewError(401, format, a) +func Unauthorized(format string, a ...interface{}) error { + return NewError(401, format, a...) } -func Forbidden(format string, a ...string) error { - return NewError(403, format, a) +func Forbidden(format string, a ...interface{}) error { + return NewError(403, format, a...) } -func NotFound(format string, a ...string) error { - return NewError(404, format, a) +func NotFound(format string, a ...interface{}) error { + return NewError(404, format, a...) } -func InternalServerError(format string, a ...string) error { - return NewError(404, format, a) +func InternalServerError(format string, a ...interface{}) error { + return NewError(404, format, a...) }