Breadcrumbs

Offer search - Response

We follow the following guide lines

Http verb

Http status code

Description

SUCCESS

200 OK

All requests properly built by the client and properly processed by the server

CLIENT ERROR

400 Bad request

Bad usage of the parameters

SERVER ERROR

500 Internal server error

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."
}