Responses

Content-Type

StartExam API returns Json Content-Type responses.

You should specify Accept header application/json to get responses in json.

Accept: application/json; charset=utf-8

HTTP status codes

Every API call returns one of the following HTTP status codes:

HTTP Status Code Description
200 OK Indicates success
400 Bad Request The request had bad syntax or was inherently impossible to be satisfied
403 Forbidden The request is forbidden because HTTP Date header or Authorization header is incorrect
404 Not Found The server has not found requested resource
500 Internal Server Error The server encountered an unexpected condition which prevented it from fulfilling the request

In case of client errors (400, 403, 404) the server returns a message with the description and possible reasons of the error.
Response example:

HTTP/1.1 403 Forbidden
Content-Type: application/json; charset=utf-8
Content-Length: 80
{ "message": "HTTP header 'Date' is incorrect: it's older than 15 minutes" }

To fix client errors during the development use the error code and message provided in a reponse. Also don't forget to follow the latest changes in the StartExam API documentation and examples.

In case of server errors (500) or any bugs and gaps found in the documentation please submit your problem to our support team: support@startexam.com