FIX: adds 422 status code to bootstrap json (#15138)
A post error validation would return a 422 status code. This status code was not accepted with the recent changes to bootstrap-json/index.js and would return a "Discourse Build Error" string, preventing any kind of bootbox popup error in the composer.
This commit is contained in:
parent
7bd3986b21
commit
77a1d8675c
|
@ -240,6 +240,7 @@ async function handleRequest(proxy, baseURL, req, res) {
|
||||||
308,
|
308,
|
||||||
404,
|
404,
|
||||||
403,
|
403,
|
||||||
|
422,
|
||||||
500,
|
500,
|
||||||
];
|
];
|
||||||
const proxyRequest = bent(req.method, acceptedStatusCodes);
|
const proxyRequest = bent(req.method, acceptedStatusCodes);
|
||||||
|
|
Loading…
Reference in New Issue