Skip to content

Instantly share code, notes, and snippets.

@dcomartin

dcomartin/problem.json Secret

Created May 12, 2021
Embed
What would you like to do?
{
"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