Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created May 12, 2021 21:52
Show Gist options
  • Save dcomartin/2fb35edb73c506063509630d9fdc9610 to your computer and use it in GitHub Desktop.
Save dcomartin/2fb35edb73c506063509630d9fdc9610 to your computer and use it in GitHub Desktop.
{
"type": "http://example.com/problems/multiple",
"title": "Multiple Problems",
"status": 400,
"detail": "There were multiple problems that have occurred.",
"instance": "/sales/products/abc123/availableForSale",
"problems": [
{
"type": "http://example.com/problems/already-available",
"title": "Cannot set product as available.",
"detail": "Product is already Available For Sale.",
"instance": "/sales/products/abc123/availableForSale",
},
{
"type": "http://example.com/problems/no-quantity",
"title": "Cannot set product as available.",
"detail": "Product has no Quantity on Hand.",
"instance": "/sales/products/abc123/availableForSale",
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment