HTTP HTTP status codes

Trigger specific HTTP status codes for testing your application's error handling.

Get specific HTTP status

Returns the specified HTTP status code using a GET request.

Examples:
- GET /api/http/200 → 200 OK
- GET /api/http/404 → 404 Not Found
- GET /api/http/401 → 401 Unauthorized
- GET /api/http/500 → 500 Internal Server Error
fetch('https://axomock.fauzantaslim.biz.id/api/http/404')
  .then(res => res.json())
  .then(console.log);
axios.get('https://axomock.fauzantaslim.biz.id/api/http/404')
  .then(res => console.log(res.data));
curl https://axomock.fauzantaslim.biz.id/api/http/404
404 Not Found
{
  "status": 404,
  "message": "Not Found"
}