IPP Mail Archive: Re: IPP> MOD - ISSUE 35: What error code to return on Print-URI

Re: IPP> MOD - ISSUE 35: What error code to return on Print-URI

kugler@us.ibm.com
Mon, 3 May 1999 13:38:06 -0600

> 'document-access-error': The Printer could not access one or more
documents
> passed by reference, i.e., by Print-URI or Send-URI while processing the
> job. This reason is intended to cover any file access problem, including
> file does not exist, server timeout, and access denied because of an
access
> control problem.

Unfortunately, this provides little diagnostic information to the client.
How is the client to know whether the problem is that the file doesn't
exist, or there's no route to host, or DNS hostname cannot be resolved,
etc.? One solution would be to tuck a descriptive error message into
"job-state-message", but that violates this paragraph from MOD section
4.3.9:

Note: the value SHOULD NOT contain additional information not
contained in the values of the "job-state" and "job-states-reasons"
attributes, such as interpreter error information. Otherwise, application
programs might attempt to parse the (localized text). For such additional
information such as interpreter errors for application program consumption,
a new attribute with keyword values, needs to be developed and registered.

I suppose we could generate a new attribute with keyword values such as

'no-route-to-host'
'cannot-resolve-hostname'
'connection-refused'
'connection-timed-out'
'cannot-bind-to-port'
'connection-reset-by-peer'
'http-404'
'http-400'
'http-500'
'ftp-xxx'
'ftp-yyy'

etc...

-Carl