aries-cloudagent-python icon indicating copy to clipboard operation
aries-cloudagent-python copied to clipboard

ACA-Py returns 200 with "schema": null when no schema found

Open TimoGlastra opened this issue 4 years ago • 2 comments

When a schema is not found when calling the /schemas/{schema_id} endpoint, ACA-Py returns the following json with a 200 response code.

{
  "schema": null
}

Shouldn't this return a 404 error? Or is this on purpose? Not sure how things not found on the ledger should be processed

TimoGlastra avatar Nov 10 '21 16:11 TimoGlastra

@ianco @andrewwhitehead -- could you please weigh in on this? Should we change ACA-Py for this case?

Or should we just close this issue as a ¯\_(ツ)_/¯?

swcurran avatar Jun 03 '22 22:06 swcurran

I think it makes sense to return a 404

ianco avatar Jun 03 '22 22:06 ianco