lib/finapps/middleware/raise_http_exceptions.rb in finapps-0.1.4.pre vs lib/finapps/middleware/raise_http_exceptions.rb in finapps-0.1.5.pre
- old
+ new
@@ -39,16 +39,12 @@
when CLIENT_ERROR_STATUSES
raise FinApps::REST::Error, response_values(env, 'Unexpected error.')
else
- if body.present? && body.kind_of?(String)
# 200..206 Success codes
# all good!
logger.debug "##{__method__.to_s} => Status code: [#{env[:status]}]."
- else
- raise FinApps::REST::InternalServerError, response_values(env, 'Unexpected technical condition was encountered.')
- end
end
end
private
\ No newline at end of file