Skip to content

Latest commit

 

History

History

web-api-custom-status-code

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

A simple example demonstrating how to use custom response codes in API responses.

  1. run npm install to grab the dependencies
  2. run npm start to set up the lambda project under the default name on AWS
  3. Check out the API ID in claudia.json (the previous step creates the file)
  4. Open https://API_ID.execute-api.us-east-1.amazonaws.com/latest/status-code in a browser (replace API_ID with the API ID from claudia.json) and inspect the headers. You should see the status code of 201

Check out web.js to see how the paths are set up. For more information, see the Claudia Api Builder documentation.