apigovau / national-api-design-standards

Australian National API Design Standards
35 stars 15 forks source link

Error handling error samples 500 incorrect #8

Closed wejrox closed 3 years ago

wejrox commented 4 years ago

The 500 internal server error response example has a comma in the wrong place.

{
  "errors": [{
    "id": "86032cbe-a804-4c3b-86ce-ec3041e3effc",
    "detail": "Downstream system is not responding correctly"
    "code" : "500",
  }]
}

Should be

{
  "errors": [{
    "id": "86032cbe-a804-4c3b-86ce-ec3041e3effc",
    "detail": "Downstream system is not responding correctly",
    "code" : "500"
  }]
}