Bug Report - Incorrect Response for unknown RegisteredOfficeAddress

Hi, I’m doing some work with the Companies House API and have noted a small bug. The documentation suggests that a response containing error information (see code example 1) will be returned in the event of a 404 Not Found status but unfortunately, there isn’t anything in the response body.

The response details indicated by the Companies House website can also be seen in Output 1 below.

This can be reproduced using the Companies House website using the following url:
https://developer.companieshouse.gov.uk/api/docs/company/company_number/registered-office-address/readRegisteredOfficeAddress.html#here

and entering 2476571 or any other unknown Company Number.

Code sample 1

{
   "errors" : [
      {
         "error" : "string",
         "error_values" : [
            {
               "<argument>" : "<value>"
            }
         ],
         "location" : "string",
         "location_type" : "string",
         "type" : "string"
      }
   ]
}

Output 1
Request
GET /company/2476571/registered-office-address HTTP/1.1
Host: api.companieshouse.gov.ukundefined
Response status
404 error
Response body
Response headers
content-length: 0
x-ratelimit-limit: 600
x-ratelimit-remain: 574
x-ratelimit-reset: 1581522446
x-ratelimit-window: 5m

I hope this info helps.

Kind Regards,

Gavin