ruma / homeserver

A Matrix homeserver written in Rust.
https://www.ruma.io/
1.08k stars 41 forks source link

Add M_INVALID_PARAM error #103

Closed mujx closed 8 years ago

mujx commented 8 years ago

Currently when parameter validation fails (user_id, room_id, etc) we either use M_MISSING_PARAM or M_NOT_FOUND to describe the error, which is not so accurate.

jimmycuadra commented 8 years ago

This error code isn't in the spec, so it'd need to be IO_RUMA_INVALID_PARAM.