New error handling in poc and features

This commit is contained in:
Héctor Hurtado
2019-11-14 15:05:19 +01:00
parent 9ebc989bc7
commit ee9bb8df9c
11 changed files with 95 additions and 20 deletions
@@ -27,4 +27,10 @@ Feature: Fail to retrieve an invalid resource for a handler in Kapow! server.
When I send a request to the testing route "/foo"
And I get the resource "/invented/path"
Then I get 400 as response code
And I get "Invalid Resource Path" as response reason phrase
And the response header "Content-Type" contains "application/json"
And I get the following response body:
"""
{
"reason": "Invalid Resource Path"
}
"""