Use current HTTP 422 status name
This commit is contained in:
parent
4b76848c54
commit
0e7fb720c8
1 changed files with 1 additions and 1 deletions
|
|
@ -908,7 +908,7 @@ static enum MHD_Result handle_request(void *closure,
|
|||
if (status == TRAINLOG_STATUS_INVALID_ARGUMENT) {
|
||||
free(json);
|
||||
return queue_json(connection,
|
||||
MHD_HTTP_UNPROCESSABLE_ENTITY,
|
||||
MHD_HTTP_UNPROCESSABLE_CONTENT,
|
||||
"{\"error\":\"invalid_preparation\"}\n",
|
||||
NULL);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue