Skip to content

Common Error Responses

Akalanka Perera edited this page Jul 28, 2023 · 1 revision

Unauthorized (HTTP Status - 401)

{
  "message": "Unauthorized",
}

Forbidden (HTTP Status - 403)

{
  "message": "You are not permitted to access this resource",
}

Validation Error (HTTP Status - 422)

{
  "message": "{{ validation message }}",
}

Internal Server Error (HTTP Status - 500)

{
  "message": "Just patching things up. This'll be over in a jiffy!",
}
Clone this wiki locally