Errors & Troubleshooting

HTTP status codes, error responses, and solutions for the PaperStack API.

Errors & Troubleshooting

HTTP Status Codes

CodeMeaningCause
200OKRequest succeeded
302RedirectRoot endpoint redirects to API reference
400Bad RequestInvalid year format, filename, or malformed URL
401UnauthorizedMissing or malformed Authorization header
403ForbiddenInvalid, expired, or revoked API key
404Not FoundExam, year, shift, file, or diagram does not exist
429Too Many RequestsRate limit exceeded (2 req/s per key)
500Internal Server ErrorGateway misconfiguration
502Bad GatewayAuthentication service (Unkey) or data origin temporarily unavailable

Error Response Format

All errors return JSON with a single field:

{
  "error": "Human-readable error description"
}

Common Errors

Debugging Tips

  1. Verify your key starts with ps_
  2. Check the URL for typos — use neet, not neet2024
  3. List available years first — curl https://api.paperstack.qzz.io/neet
  4. Use shorthand shiftss1 instead of full shift names
  5. Use the API Reference at /reference to test endpoints interactively
  6. Monitor your usage on the Dashboard

On this page