New error handling in poc and features
This commit is contained in:
@@ -28,4 +28,10 @@ Feature: Fail to retrieve nonexistent resource items in Kapow! server.
|
||||
When I send a request to the testing route "/foo"
|
||||
And I get the resource "/request/params/meloinvento"
|
||||
Then I get 404 as response code
|
||||
And I get "Resource Item Not Found" as response reason phrase
|
||||
And the response header "Content-Type" contains "application/json"
|
||||
And I get the following response body:
|
||||
"""
|
||||
{
|
||||
"reason": "Resource Item Not Found"
|
||||
}
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user