-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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...) | ||
} |