tbbr/tbbr-api

Introduce error object that follows the JSON spec

Closed this issue · 1 comments

Currently errors aren't being handled very elegantly. Introduce a error object struct that wraps a normal golang error. Try to incorporate it into gin's error handling functionality.

JSON API Error spec: http://jsonapi.org/format/#errors

Added in this commit: 1946d7b