add HTTP status codes for errors and move key format to the right spot
add HTTP status codes for errors and move key format to the right spot

matrix-org/matrix-doc,matrix-org/matrix-doc,matrix-org/matrix-doc,matrix-org/matrix-doc