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:
parent
1f9afbd09c
commit
7d47ee4d5a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue