JSON Response With an HTTP Status Code
Usage
status(..., status code)Parameters:
Example
@get('/greet'):
if require_keys(['name', 'age'], body):
status('Please provide all required parameters.', 400)
respond({
name: body['name'],
age: body['age']
})Last updated