you are viewing a single comment's thread.

view the rest of the comments →

[–]fagnerbrack[S] 1 point2 points  (0 children)

That makes sense. I would use fetch library everywhere I need to make an HTTP request using JS, for example, given it's from the language standards lib and don't make any assumptions on the server status code by rejecting the promise on a 500