added pkgs

This commit is contained in:
nquidox 2026-02-23 20:46:53 +03:00
parent 1dce375512
commit de82c22e77
5 changed files with 79 additions and 0 deletions

View 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"`
}