4 ms·
All of the commonly used libraries have support for any type of status codes; however, in JS world, you need to have two functions to handle a response, one is
by umurkontaci 12y ago
All of the commonly used libraries have support for any type of status codes; however, in JS world, you need to have two functions to handle a response, one is for success and one is for error. The developers you have worked with either didn't know that, or was lazy.