Response codes

Summary of the codes provided in the response by the Inspire API endpoints

Each endpoint method in the Inspire API returns a response code. Inspire uses conventional HTTP response codes to indicate a successful or failed API call.

  • Success is indicated by 2xx codes.
  • Error is indicated by 4xx codes.

Success codes

Here is a summary of the codes indicating a successful request:

Status codeShort DescriptionExplanation
200Successful responseThe API call was successful. Typically returned by GET methods.
201Object createdReturned when an object was created as a result of the API call, usually by a POST method.
202Object updatedReturned when an existing object was updated successfully. Typically returned by PUT and PATCH methods.
204Object deletedThis code traditionally means the request was successfully processed, and there is no content to return. In the Inspire API, this code can be returned by PATCH and DELTE methods.