Skip to content

Variable: FastifyJSONResponder ​

const FastifyJSONResponder: FastifyResponder

The default responder of fastifyHTTPEntrypoint: a result is sent as JSON, no result as an empty 204 (or the status set by a StatusResult); an error is sent as {errno, errMsg} (see describeError) with its HTTP status (see statusOfError: the first 4xx status in its cause chain, its own status, or 500).

Released under the MIT License.