Initial commit

This commit is contained in:
Björn Benouarets
2025-11-20 22:47:28 +01:00
commit 08055398c4
10 changed files with 319 additions and 0 deletions

14
app/utils/error/http.go Normal file
View File

@@ -0,0 +1,14 @@
package error
type HTTPError struct {
Code int `json:"code"`
Message string `json:"message"`
}
func (e *HTTPError) Error() string {
return e.Message
}
func (e *HTTPError) StatusCode() int {
return e.Code
}