feat: Implement rate limiting, request timeouts, and security headers for improved server protection

This commit is contained in:
2026-10-19 23:15:05 +03:00
parent 7206bf9c4a
commit 85c5baa3e5
8 changed files with 291 additions and 80 deletions

View File

@@ -14,6 +14,7 @@
* 502 source_invalid the catalog answered, but its folders or tables are not recognised
* 503 not_ready /api/ready only: the server is still loading the catalog or its index
* 504 source_timeout the university catalog answered too slowly
* 504 timeout the server did not answer within its time limit
* 500 internal a fault of the server itself
*/
export class ApiError extends Error {