Errors

Drock uses standard HTTP status codes to indicate the success or failure of an API request.

Success Codes

ParameterTypeDescription
200 OK
HTTPThe request succeeded and content is returned in the response body.
204 No Content
HTTPReturned for successful CORS preflight responses on public v1 endpoints.

Error Codes

ParameterTypeDescription
400 Bad Request
HTTPRequest payload or parameters are invalid.
401 Unauthorized
HTTPThe API key is missing or invalid. Check your Authorization header.
403 Forbidden
HTTPThe API key is valid but does not have access to the requested blog.
404 Not Found
HTTPThe requested resource (Blog, Article, etc.) does not exist.
500 Server Error
HTTPAn internal error occurred or a required server environment variable is missing.