Module: FaxFinder::Responses

Defined in:
lib/fax_finder/response.rb

Constant Summary collapse

ERROR_GSUB =
'####MESSAGE#####'
APPLICATION_ERROR =
<<-EOXML
<response>
  <message>####MESSAGE#####</message>
  <fax_entry>
    <state>error</state>
  </fax_entry>
</response>    
EOXML
NO_CONNECTION =
APPLICATION_ERROR.gsub('####MESSAGE#####', 'No connection to fax server')
UNAUTHORIZED =
APPLICATION_ERROR.gsub('####MESSAGE#####', 'Unauthorized to communicate with fax server.')
BAD_SSL_CONFIG =
APPLICATION_ERROR.gsub('####MESSAGE#####', 'Your connection is not configured correctly.  If you are using SSL, make sure the port is is set to 443.')