Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
example of a document error response
  • Loading branch information
nichtich committed Nov 20, 2013
1 parent 06f6338 commit 96ce9cb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions paia.md
Expand Up @@ -224,6 +224,18 @@ Document errors
a document _do not result_ in an error response. Instead they are
indicated by the `doc.error` response field.

For instance the following response, returned with HTTP status code 200, could
result from a [request] for an item given by an unknown URI:

~~~~ {.json}
{
"doc": [ {
"item": "http://example.org/some/uri",
"error": "item URI not found"
} ]
}
~~~~

Request errors
: Malformed requests, failed authentication, unsupported methods, and
unexpected server errors such as backend downtime etc. MUST result in an
Expand Down Expand Up @@ -308,6 +320,7 @@ For instance the following response could result from a request with malformed U
}
~~~~


## Data types

The following data types are used to define request and response format:
Expand Down

0 comments on commit 96ce9cb

Please sign in to comment.