Skip to content

Commit

Permalink
Update pages/api/comments.js
Browse files Browse the repository at this point in the history
Co-Authored-By: Jorge Orpinel <[email protected]>
  • Loading branch information
iAdramelk and jorgeorpinel committed Dec 4, 2019
1 parent 99bfce2 commit 2fd68dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/api/comments.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const getCommentCount = (req, res) => {

request(`${url}.json`, (error, response, body) => {
if (error || response.statusCode !== 200) {
res.status(404).json({ error: 'Forum returned incorrect response' })
res.status(502).json({ error: "Unexpected response from Forum" })

return
}
Expand Down

0 comments on commit 2fd68dd

Please sign in to comment.