Documentation
¶
Index ¶
- func Custom() *errorBuilder
- func GenerateByStatusCode(code int) *errorBuilder
- func InternalServerError() *errorBuilder
- func InvalidRequest() *errorBuilder
- func NotAllowed() *errorBuilder
- func NotFound() *errorBuilder
- func ServiceNotAvailable() *errorBuilder
- func Unauthorized() *errorBuilder
- type ErrorMessage
- type ErrorResponse
- type ErrorType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateByStatusCode ¶
func GenerateByStatusCode(code int) *errorBuilder
func InternalServerError ¶
func InternalServerError() *errorBuilder
func InvalidRequest ¶
func InvalidRequest() *errorBuilder
func NotAllowed ¶
func NotAllowed() *errorBuilder
func ServiceNotAvailable ¶
func ServiceNotAvailable() *errorBuilder
func Unauthorized ¶
func Unauthorized() *errorBuilder
Types ¶
type ErrorMessage ¶
type ErrorResponse ¶
type ErrorResponse struct {
HTTPStatusCode int `json:"status"`
ErrorMessage ErrorMessage `json:"error"`
}
Click to show internal directories.
Click to hide internal directories.