We follow the following guide lines
|
Http verb |
Http status code |
Description |
|---|---|---|
|
|
|
All requests properly built by the client and properly processed by the server |
|
|
|
Bad usage of the parameters |
|
|
|
The request id good but the system cannot handle it properly |
It the http status code is not 200 OK, you will get a response like this one:
Bad request
Example
Invalid page and pageSize parameters
-
Given the input parameters are
|
name |
value |
|---|---|
|
query |
nike+air |
|
pageSize |
50 |
|
page |
11 |
-
When the client perform a GET on /api/public/search/offers with the input parameters
-
Then I get a response with status 400
-
And I get following json body response
JSON
{
"error": "The specified page and pageSize parameters are invalid. No more than 500 offers can be requested."
}