0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 07:23:53 +01:00

ircd::resource: Return BAD_REQUEST rather than NOT_FOUND for required JSON missing.

This commit is contained in:
Jason Volk 2018-11-06 21:36:51 -08:00
parent 1f9afbd09c
commit 7d47ee4d5a

View file

@ -425,7 +425,7 @@ catch(const json::not_found &e)
{
throw m::error
{
http::NOT_FOUND, "M_BAD_JSON", "Required JSON field: %s", e.what()
http::BAD_REQUEST, "M_BAD_JSON", "Required JSON field: %s", e.what()
};
}
catch(const json::error &e)