-
Notifications
You must be signed in to change notification settings - Fork 12
Server Module
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 failures can originate both remotely on the REST server and locally within the client application.
REST values can originate both remotely on the REST server and locally within the client application.
[Home] (https://github.com/flowgrammable/flowsim/wiki)
[Subscriber Module] (https://github.com/flowgrammable/flowsim/wiki/Subscriber-Module)
[Packet Module] (https://github.com/flowgrammable/flowsim/wiki/packet-module)
[Profile Module] (https://github.com/flowgrammable/flowsim/wiki/profile-module)
[Switch Module] (https://github.com/flowgrammable/flowsim/wiki/Switch-Module)
[Database Module] (https://github.com/flowgrammable/flowsim/wiki/Database-Result-and-Error)
[Server Module] (https://github.com/flowgrammable/flowsim/wiki/Server-Module)
[Function Results] (https://github.com/flowgrammable/flowsim/wiki/Function-Results)
[Development Guidelines] (https://github.com/flowgrammable/flowsim/wiki/General-Guidelines)