Fix server signature verification

This commit is contained in:
Pim Kunis 2021-08-10 18:02:53 +02:00
parent 33b64d80f5
commit e6b3c4752d
8 changed files with 138 additions and 110 deletions

View file

@ -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)