I’ve noticed that when I use the API to try and retrieve filing data for a company that doesn’t have any (eg, https://beta.companieshouse.gov.uk/company/09227511), I get a 500 or 502 http error from the server.
While I can, obviously, handle this locally, this seems to be less than optimal as it means overriding my standard http error handling code. Surely, the server should still respond with http status 200, but the json should be either null or have a “zero results” field.