fd85033
Return errors in json format There are some errors returned with flask.abort, change them to be in json format.