Logo: Relish

  1. Sign in

Project: Apiv3

Errors

TODO: Document Purpose and Usage

Scenarios
404
When
I GET to an invalid url
Then
I should get a 404 NOT FOUND status code
And
the response is the Error collection with body:
{
  "collection": {
    "version": "1.0",
    "href": "http://example.org/404",
    "error": {"message": "NOT FOUND"}
  }
}
500
When
the server raises an error
Then
I should get a 500 INTERNAL SERVER ERROR status code
And
the response is the Error collection with body:
{
  "collection": {
    "version": "1.0",
    "href": "http://example.org/500",
    "error": {
      "code": "ABC-123-DEF-456",
      "message": "INTERNAL SERVER ERROR"
    }
  }
}

Last published almost 7 years ago by semmons99.