Errors

This section shows all Referd common error codes and how to resolve them.

HTTP Status Codes

Referd uses HTTP response status codes to indicate the success or failure of your API requests. If your request fails, Referd returns an error using the appropriate status code.

  • 2XX codes indicate success and that the request worked as intended

  • 4XX codes indicate errors due to some mistakes in the request.

  • 5XX codes indicate an error with Referd's servers.

Error Object

When an error occurs and the response code is 4XX, Referd's servers send an Error Object that has two parameters, codeand message.

Example

{
    "code": 14,
    "message": "Name Already Exists"
}

Error Codes

Referd sends an error code in the body of the response, each code has a corresponding error message that is descriptive of what went wrong, below are the codes along with their description.

Last updated