This commit is contained in:
2025-08-22 15:01:40 -04:00
parent 141b1e936d
commit f502f21473
10 changed files with 1455 additions and 4 deletions

View File

@ -197,6 +197,11 @@ func NewPermissionError(message string) *AppError {
return New(ErrInsufficientPermissions, message)
}
// NewAuthenticationError creates an authentication error
func NewAuthenticationError(message string) *AppError {
return New(ErrUnauthorized, message)
}
// ErrorResponse represents the JSON error response format
type ErrorResponse struct {
Error string `json:"error"`