added pkgs
This commit is contained in:
parent
1dce375512
commit
de82c22e77
5 changed files with 79 additions and 0 deletions
25
pkg/responses/httpResponse.go
Normal file
25
pkg/responses/httpResponse.go
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
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"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue