26 lines
474 B
Go
26 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"`
|
||
|
|
}
|