Description Usage Arguments Components See Also Examples
A response object represents the HTTP response returned by a route handler. A response is typically made up of a status, HTTP headers, and a body. A response body is optional.
1 |
status |
(numeric) HTTP status code, e.g. 200 for OK, 404 for Not Found |
content_type |
(character) MIME content type, e.g., "text/plain", "text/html". |
body |
(character) Body of the response |
Set the status of a response to indicate what action, if any, the client needs to take. Otherwise a status of 2XX indicates a client request was valid and the response object contains the requested resource.
Below are descriptions for each status code class,
Informational - Request received, continuing process
Success - The action was successfully received, understood, and accepted
Redirection - Further action must be taken in order to complete the request
Client Error - The request contains bad syntax or cannot be fulfilled
Server Error - The server failed to fulfill an apparently valid request
stub
stub
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.