Documentation
¶
Index ¶
- func Accepted() huma.Response
- func BadGateway() huma.Response
- func BadRequest() huma.Response
- func ClientClosedRequest() huma.Response
- func Conflict() huma.Response
- func Created() huma.Response
- func Forbidden() huma.Response
- func Found() huma.Response
- func GatewayTimeout() huma.Response
- func InternalServerError() huma.Response
- func MovedPermanently() huma.Response
- func NoContent() huma.Response
- func NotAcceptable() huma.Response
- func NotFound() huma.Response
- func NotImplemented() huma.Response
- func NotModified() huma.Response
- func OK() huma.Response
- func PartialContent() huma.Response
- func PermanentRedirect() huma.Response
- func PreconditionFailed() huma.Response
- func PreconditionRequired() huma.Response
- func RequestEntityTooLarge() huma.Response
- func RequestTimeout() huma.Response
- func ServiceUnavailable() huma.Response
- func String(status int) huma.Response
- func TemporaryRedirect() huma.Response
- func Unauthorized() huma.Response
- func UnprocessableEntity() huma.Response
- func UnsupportedMediaType() huma.Response
- func WriteContent() []huma.Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BadGateway ¶
BadGateway HTTP 502 response with a structured error body (e.g. JSON).
func BadRequest ¶
BadRequest HTTP 400 response with a structured error body (e.g. JSON).
func ClientClosedRequest ¶ added in v1.10.0
ClientClosedRequest HTTP 499 response with a structured error body (e.g. JSON). 499 is not currently registered with IANA and is unavailable in the net/http lib. See: https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
func GatewayTimeout ¶
GatewayTimeout HTTP 504 response with a structured error body (e.g. JSON).
func InternalServerError ¶
InternalServerError HTTP 500 response with a structured error body (e.g. JSON).
func NotAcceptable ¶
NotAcceptable HTTP 406 response with a structured error body (e.g. JSON).
func NotImplemented ¶
NotImplemented HTTP 501 response with a structured error body (e.g. JSON).
func PartialContent ¶ added in v1.4.0
PartialContent HTTP 206 response
func PermanentRedirect ¶
PermanentRedirect HTTP 308 response.
func PreconditionFailed ¶
PreconditionFailed HTTP 412 response with a structured error body (e.g. JSON).
func PreconditionRequired ¶
PreconditionRequired HTTP 428 response with a structured error body (e.g. JSON).
func RequestEntityTooLarge ¶
RequestEntityTooLarge HTTP 413 response with a structured error body (e.g. JSON).
func RequestTimeout ¶
RequestTimeout HTTP 408 response with a structured error body (e.g. JSON).
func ServiceUnavailable ¶
ServiceUnavailable HTTP 503 response with a structured error body (e.g. JSON).
func TemporaryRedirect ¶
TemporaryRedirect HTTP 307 response.
func Unauthorized ¶
Unauthorized HTTP 401 response with a structured error body (e.g. JSON).
func UnprocessableEntity ¶ added in v1.5.1
UnprocessableEntity HTTP 422 response with a structured error body (e.g. JSON).
func UnsupportedMediaType ¶ added in v1.7.0
UnsupportedMediaType HTTP 415 response with a structured error body (e.g. JSON).
func WriteContent ¶ added in v1.4.1
WriteContent returns a slice containing all valid responses for context.WriteContent
Types ¶
This section is empty.