sharmalab / TCIAPubHubAdmin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Return HTTP errors on errors

lastlegion opened this issue · comments

Currently the backend server returns a JSON error object on errors, but the HTTP status code is 200.
Should use something like res.status(500).send({ error: 'Error message' }) instead

Done.