OptionalbodyThe body of the response.
Either
text/plain),application/octet-stream),application/octet-stream),application/json).The content type in parentheses is the default and can be overridden in headers.
OptionalheadersAn object mapping lower-case HTTP header names to their values.
The type of body determines the default value of the content-type header.
OptionalstatusThe HTTP status code to return.
Defaults to 200, or 500 if an exception is raised.
The response object returned from an endpoint function.
Example returning JSON:
Example returning plaintext and custom headers and status code:
See the property descriptions below for further details on allowed data types, default headers, and default status codes.