X-Reason, a header for all user-facing error messages to go.

This commit is contained in:
fiatjaf
2024-10-29 13:11:34 -03:00
parent d9a53bda1c
commit c746be27e3
2 changed files with 12 additions and 9 deletions

View File

@@ -10,6 +10,10 @@ _All pubkeys MUST be in hex format_
Servers MUST set the `Access-Control-Allow-Origin: *`, `Access-Control-Allow-Headers: Authorization,*` and `Access-Control-Allow-Methods: GET, PUT, DELETE` headers on all endpoints to ensure compatibility with apps hosted on other domains
## Error responses
Every time a server sends an error response (HTTP status codes >=400), it may include a human-readable header `X-Reason` that can be displayed to the user.
## Authorization events
Authorization events are used to identify the users to the server