Errors
Drock uses standard HTTP status codes to indicate the success or failure of an API request.
Success Codes
| Parameter | Type | Description |
|---|---|---|
200 OK | HTTP | The request succeeded and content is returned in the response body. |
204 No Content | HTTP | Returned for successful CORS preflight responses on public v1 endpoints. |
Error Codes
| Parameter | Type | Description |
|---|---|---|
400 Bad Request | HTTP | Request payload or parameters are invalid. |
401 Unauthorized | HTTP | The API key is missing or invalid. Check your Authorization header. |
403 Forbidden | HTTP | The API key is valid but does not have access to the requested blog. |
404 Not Found | HTTP | The requested resource (Blog, Article, etc.) does not exist. |
500 Server Error | HTTP | An internal error occurred or a required server environment variable is missing. |