Skip to content

Server Module

cchojnacki edited this page Oct 10, 2014 · 1 revision

HTTP/REST Return Types

The body of all HTTP/REST responses will contain a JSON object that is tagged as either an error or a value.

{ error: {
  message: 'some human readable string',
  details: 'maybe some more technical details'
} }

... or ...

{ value: {
  ... some useful attributes ...
} }

##HTTP Errors: Server and global errors will result in an HTTP error code; however, REST errors are propagated through the JSON object in the body of a 200 response.

  • database down
  • bad request uri
  • general failure

REST Errors

REST failures can originate both remotely on the REST server and locally within the client application.

Rest Values

REST values can originate both remotely on the REST server and locally within the client application.

Clone this wiki locally