Closed #3. Status code now != 200 on error
Make sure the error JSON object is returned before parsing