Skip to content

Instantly share code, notes, and snippets.

@simonplend
Last active November 19, 2020 08:24
Show Gist options
  • Select an option

  • Save simonplend/23a173b4cbfaac0da282c55f3ff195b4 to your computer and use it in GitHub Desktop.

Select an option

Save simonplend/23a173b4cbfaac0da282c55f3ff195b4 to your computer and use it in GitHub Desktop.

Revisions

  1. simonplend revised this gist Nov 17, 2020. No changes.
  2. simonplend created this gist Nov 17, 2020.
    18 changes: 18 additions & 0 deletions example-problem-detail-response.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    HTTP/1.1 400 Bad Request
    Content-Type: application/problem+json
    Content-Language: en

    {
    "type": "https://example.net/validation-error",
    "title": "Your request parameters didn't validate.",
    "invalid-params": [
    {
    "name": "age",
    "reason": "must be a positive integer"
    },
    {
    "name": "color",
    "reason": "must be 'green', 'red' or 'blue'"
    }
    ]
    }