merch-api/pkg/responses/httpResponse.go

26 lines
474 B
Go
Raw Normal View History

2026-02-23 20:46:53 +03:00
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"`
}