AccessDenied 无权限
()
| 62 | |
| 63 | // AccessDenied 无权限 |
| 64 | func (e *APIError) AccessDenied() *APIError { |
| 65 | return e.dup().appendCode(http.StatusForbidden, "AccessDenied"). |
| 66 | appendLocaleTemplate(templateAccessDenied) |
| 67 | } |
| 68 | |
| 69 | // NotFound 资源不存在 |
| 70 | func (e *APIError) NotFound() *APIError { |
nothing calls this directly
no test coverage detected