haproxy: 429 as json

This commit is contained in:
Gaël Goinvic committed 2025-02-20 13:08:49 +01:00
1 parent 75aca863d9
commit 786a7e183d
2 files changed
+3 -4

No files matched your search

@@ -20,13 +20,11 @@ data:
HTTP/1.0 429 Too Many Requests
Cache-Control: no-cache
Connection: close
Content-Type: text/html
Content-Type: application/json
access-control-allow-origin: *
access-control-allow-methods: GET, POST, PUT, DELETE, OPTIONS
access-control-allow-headers: Origin, X-Requested-With, Content-Type, Accept, Authorization
<html><body><h1>429 Too Many Requests</h1>
No server is available to handle this request.
</body></html>
{"errcode":"M_UNKNOWN","error":"Server is unavailable"}
{{- end -}}
{{- end -}}
+1
View File
@@ -0,0 +1 @@
HAProxy: Return 429 error code as Matrix Json format.