lib/lifen/app_authenticated_client.rb in lifen-0.1.1 vs lib/lifen/app_authenticated_client.rb in lifen-0.1.2

- old
+ new

@@ -10,11 +10,12 @@ req.headers['Content-Type'] = "application/json" req.body = JSON.generate(params) end - raise Error if response.status == 500 - raise Error if response.status == 400 + raise Error, "Error 500, Internal server error" if response.status == 500 + raise Error, "Error 400" if response.status == 400 + raise Error, "Error 404, Page not found" if response.status == 404 raise InvalidSecretTokenError if response.status == 401 raise UserAlreadyExistingError if response.status == 403 json = JSON.parse response.body \ No newline at end of file