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:
Joffrey JAFFEUX 2021-11-30 11:54:38 +01:00 committed by GitHub
parent 7bd3986b21
commit 77a1d8675c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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);