Errors & Troubleshooting
Common error codes, causes, and solutions for the PaperStack API.
Errors & Troubleshooting
HTTP Status Codes
| Code | Meaning | Cause |
|---|---|---|
200 | OK | Request succeeded |
302 | Redirect | Root endpoint redirects to API reference |
400 | Bad Request | Invalid year format or malformed URL |
401 | Unauthorized | Missing or malformed API key |
403 | Forbidden | Invalid, expired, or revoked API key |
404 | Not Found | Exam, year, shift, or file does not exist |
405 | Method Not Allowed | Only GET requests are supported |
429 | Too Many Requests | Rate limit exceeded |
500 | Internal Server Error | Something went wrong on our side |
502 | Bad Gateway | Authentication service unreachable |
Common Errors
"Missing API key"
Cause: The Authorization header was not provided.
Solution: Add the header to your request:
curl -H "Authorization: Bearer ps_xxxxx" https://api.paperstack.qzz.io/neet/2024/s1/physics.json"Malformed Authorization header"
Cause: The header format is incorrect.
Solution: Ensure your header uses the exact format:
Authorization: Bearer ps_your_key_here"Invalid or expired API key"
Cause: The key does not exist, has been revoked, or has expired.
Solutions:
- Check that you copied the full key (starts with
ps_) - Generate a new key from your Dashboard
- Ensure you haven't accidentally revoked the key
"Rate limit exceeded"
Cause: You've exceeded your plan's rate limit.
Free tier limits: 2 requests/second, 1,000 requests/month.
Solutions:
- Add retry logic with exponential backoff
- Reduce request frequency
- Upgrade to a higher tier (coming soon)
"Shift not found"
Cause: The shift identifier does not match any available shift.
Solution: List available shifts first:
curl https://api.paperstack.qzz.io/neet/2024Then use one of the listed shift names.
"File not found"
Cause: The requested file does not exist for the given shift.
Valid files:
physics.jsonchemistry.jsonbiology.json(NEET only)mathematics.json(JEE Main only)
Response Format
All error responses follow this structure:
{
"error": "Human-readable error message"
}Debugging Tips
- Verify your key starts with
ps_ - Check the URL for typos in exam names (
neet, notneet2024) - List available years before querying specific data
- Use the API Reference at /docs/reference to test endpoints interactively
- Monitor your usage on the Dashboard