Files
gogwapi/app/utils/error/http.go
Björn Benouarets 08055398c4 Initial commit
2025-11-20 22:47:28 +01:00

15 lines
219 B
Go

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
}