22 lines
454 B
Go
22 lines
454 B
Go
|
|
package responses
|
||
|
|
|
||
|
|
type ErrorResponse400 struct {
|
||
|
|
Error string `json:"error" example:"Bad Request"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type ErrorResponse401 struct {
|
||
|
|
Error string `json:"error" example:"Unauthorized"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type ErrorResponse403 struct {
|
||
|
|
Error string `json:"error" example:"Forbidden"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type ErrorResponse500 struct {
|
||
|
|
Error string `json:"error" example:"Internal Server Error"`
|
||
|
|
}
|
||
|
|
|
||
|
|
type ErrorResponse501 struct {
|
||
|
|
Error string `json:"error" example:"Unimplemented"`
|
||
|
|
}
|