We are using the beta API to search for companies by company number. the call is to a JSON document endpoint eg: Error Page (note the .json) however the 404 response is HTML and is a 200 response.
<span class="errortitle">Request Failure</span>
<strong>The following FAILURE message was generated:</strong><br/><br/>
<span class="error">
company number invalid
<br>Error Code: 404
<br/>
</span>
I would expect a 404 status code as the company does not exist and a JSON document not an HTML one. Something like:
{
"result" : "failed",
"code" : 404,
"error" : "company number invalid"
}