Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func GenerateByStatusCode ¶
func InternalServerError ¶
func InternalServerError() *Builder
func InvalidRequest ¶
func InvalidRequest() *Builder
func NotAllowed ¶
func NotAllowed() *Builder
func ServiceUnavailable ¶
func ServiceUnavailable() *Builder
func Unauthorized ¶
func Unauthorized() *Builder
func (*Builder) Build ¶
func (b *Builder) Build() *ErrorResponse
func (*Builder) WithErrorCode ¶
func (*Builder) WithMessage ¶
func (*Builder) WithStatusCode ¶
func (*Builder) WithValidation ¶
func (b *Builder) WithValidation(validation []ValidationError) *Builder
type ErrorMessage ¶
type ErrorResponse ¶
type ErrorResponse struct {
HTTPStatusCode int `json:"status"`
ErrorMessage ErrorMessage `json:"error"`
Validation []ValidationError `json:"validation,omitempty"`
}
type ValidationError ¶
Click to show internal directories.
Click to hide internal directories.