requests controller: error instead of errors in JSON response