lib/shipwire/response.rb
# Errors because of a 40x or 50x error
Errors because of a 40x or 50x error
Errors because of a 40x or 50x error
def parse_error_summary_from(body)
      if (400..599).include?(body['status']) && body.key?('message')
        body['message']
      else
        nil
      end
    end
def parse_error_summary_from ( body ) if ( 400 .. 599 ) . include? ( body [ 'status' ] ) && body . key? ( 'message' ) body [ 'message' ] else nil end end
Errors because of a 40x or 50x error
Errors because of a 40x or 50x error
body