Error

API endpoint for getting client side errors to alerting administrator.

Push error messages

/api/error

POST /storekeeper/api/error

Receive client side errors and forward to logfile / email / syslog (what specified in config)

Status Codes:

Example request:

POST /storekeeper/api/error HTTP/1.1
Host: localhost:8000
Content-Type: application/json

{
  "message": "foo is not defined",
  "name": "ReferenceError",
  "stack": "ReferenceError: foo is not defined\n    at Scope.printLabel (http://.../storekeeper.js:58678:21)\n    at ..."
}

Example response:

HTTP/1.0 201 CREATED
Content-Type: application/json

null