briggySmalls / late-train-mate

A lightweight website that provides stats on delayed or cancelled UK train services
MIT License
0 stars 0 forks source link

Failed HSP API requests are not handled #10

Closed briggySmalls closed 7 years ago

briggySmalls commented 7 years ago

When attempting to access the HSP API with incorrect credentials, the HTTP status code is 503 (authorisation failed). This causes the results process to fail and the web page appear to be loading results indefinitely. HTTP status codes other than 200 (OK) should pass a message to the front end/terminate gracefully.