Documentation
¶
Overview ¶
Package httputil represents the http responses documentation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpBadRequestErr ¶
type HttpBadRequestErr struct {
Message string `json:"error" example:"bad request"`
}
HttpBadRequestErr returns a error message
type HttpInternalServerErr ¶
type HttpInternalServerErr struct {
Message string `json:"error" example:"internal server error"`
}
HttpInternalServerErr returns a error message
type HttpOkWithMessage ¶
type HttpOkWithMessage struct {
Message string `json:"message" example:"feedback message"`
}
HttpOkWithMessage returns a 200 response with a message
type PingInternalServerErr ¶
type PingInternalServerErr struct {
Message string `json:"message" example:"unexpected error"`
}
PingInternalServerErr example
Click to show internal directories.
Click to hide internal directories.