Skip to main content

Error Handling

The EasyWeek API follows standard HTTP status codes to indicate the success or failure of API requests. Below are some common status codes and error messages that you may encounter when using the API:

  • 200 OK: The request was successful, and the API returned the expected data.
  • 401 Unauthorized: Authentication failed, or the provided authentication key is invalid or expired. The client should reauthenticate and try the request again.
  • 403 Forbidden: Access is denied. The API key is valid but lacks the permissions for the requested resource or operation. Ensure the key has proper permissions.
  • 404 Not Found: The requested resource does not exist on the server. This could be due to an incorrect URL or an entity/report that doesn't exist.
  • 422 Unprocessable Entity: This status code is used for validation errors when the request is malformed or contains invalid parameters. The error message will provide details about the issue.
  • 500 Internal Server Error: An unexpected error occurred on the server while processing the request. This indicates a problem on the server side, and the client should report the issue to the API provider.

These are some common HTTP status codes and error messages you may encounter when using the EasyWeek API. Always check the error message provided in the API response to diagnose and resolve issues effectively.