error handlers, json in one request