API Server to simulate broken routes as status codes. Awesome for Frontend Developement
Try it out at: api-sim.now.sh
Currently takes in Query Params
Query | Definition |
---|---|
status | The status code to use to return |
For example:
Error 404: https://api-sim.now.sh?status=404
Base URI: api-sim.now.sh
GET /?status={statusCode}
{
status: {
code: statusCode # or 200 by default
msg: #status message
}
}
POST /?status={statusCode}
{
// whatever you want
}
{
status: {
code: statusCode # or 200 by default
msg: #status message
}
...your response
}
This is licensed under MIT