Fix server signature verification
This commit is contained in:
parent
33b64d80f5
commit
e6b3c4752d
8 changed files with 138 additions and 110 deletions
|
@ -11,10 +11,11 @@ defmodule MatrixServerWeb.Plug.Error do
|
|||
unknown: {400, "M_UNKNOWN", "An unknown error occurred."},
|
||||
invalid_room_state:
|
||||
{400, "M_INVALID_ROOM_STATE", "The request would leave the room in an invalid state."},
|
||||
unauthorized: {400, "M_UNAUTHORIZED", "The request was unauthorized."},
|
||||
unknown_token: {401, "M_UNKNOWN_TOKEN", "Invalid access token."},
|
||||
missing_token: {401, "M_MISSING_TOKEN", "Access token required."},
|
||||
not_found: {404, "M_NOT_FOUND", "The requested resource was not found."},
|
||||
room_alias_exists: {409, "M.UNKNOWN", "The given room alias already exists."}
|
||||
room_alias_exists: {409, "M_UNKNOWN", "The given room alias already exists."}
|
||||
}
|
||||
|
||||
def put_error(conn, {error, msg}), do: put_error(conn, error, msg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue