Unauthorized is a helper function to return an unauthorized error.
(format string, args ...interface{})
| 159 | |
| 160 | // Unauthorized is a helper function to return an unauthorized error. |
| 161 | func Unauthorized(format string, args ...interface{}) *Error { |
| 162 | return Format(StatusUnauthorized, format, args...) |
| 163 | } |
| 164 | |
| 165 | // Forbidden is a helper function to return a forbidden error. |
| 166 | func Forbidden(format string, args ...interface{}) *Error { |
nothing calls this directly
no test coverage detected
searching dependent graphs…