merch-api/pkg/responses/httpResponse.go
2026-02-23 20:46:53 +03:00

25 lines
474 B
Go

package responses
type DefaultErrorResponse struct {
Error string `json:"error" example:"error"`
}
type BadRequest struct {
Error string `json:"error" example:"error"`
}
type NotFound struct {
Error string `json:"error" example:"error"`
}
type Unauthorized struct {
Error string `json:"error" example:"error"`
}
type Forbidden struct {
Error string `json:"error" example:"error"`
}
type InternalServerError struct {
Error string `json:"error" example:"error"`
}