Open rcocks opened 8 years ago
Rather than returning an error. Or adding the error described by @rcocks to errors.yml shoudn't this service gracefully return a companyExceptions resource as described at https://developer.companieshouse.gov.uk/api/docs/company/company_number/exemptions/companyExemptions-resource.html with an empty list of exceptions?
A call to
GET https://api.companieshouse.gov.uk/company/{company_number}/exemptions
with a company with no exemptions or a company that does not exist returns an errorcompany-exemptions-not-found
. This error is not listed in errors.yml .