When api call fails, it crashes the website. On 400 BAD Request, it is fine, but on other responses, it crashes. It should be fixed.