sloot.xquery declare variable $param as node() external; <string>{($param//ex/id|$param//error/id)[last()]}</string> this:param var:ex copy var:ex ffcpl:/trace/error.handle.ex.xml sloot.xquery declare variable $param as node() external; <string>{($param//ex/message|$param//error/page)[last()]}</string> this:param var:msg sloot.string this:param:User-Agent var:user-agent sloot.string this:param:X-Forwarded-For var:remote-host sloot.string this:param:Referer var:referer xpath2eval var:remote-host /string[normalize-space(.)=''] this:cond sloot.string this:param:Remote-Host var:remote-host sloot.string this:param:credentials var:credentials sloot.xpath2eval var:ex /string='ISOcat[UNAUTHORIZED ACCESS]' this:cond sloot.xpath2eval var:credentials .!='' this:cond sloot.log DBG: turned UNAUTHORIZED ACCESS into FORBIDDEN copy ISOcat: Forbidden

Forbidden

You're not allowed to carry out this action.

var:msg
copy 403 var:code
sloot.log DBG: turned UNAUTHORIZED ACCESS stays UNAUTHORIZED ACCESS xslt2 var:msg ISOcat: Unauthorized Access

Unauthorized Access

You need to authenticate to access this resource.

var:msg
copy 401
WWW-Authenticate Basic realm="ISOcat"
var:code
sloot.xpath2eval var:ex /string='ISOcat[INVALID CREDENTIALS]' this:cond xslt2 var:msg ISOcat: Unauthorized Access

Unauthorized Access

You need to authenticate to access this resource.

var:msg
copy 401
WWW-Authenticate Basic realm="ISOcat"
var:code
sloot.xpath2eval var:ex /string='ISOcat[FORBIDDEN]' this:cond xslt2 var:msg ISOcat: Forbidden

Forbidden

You're not allowed to carry out this action.

var:msg
copy 403 var:code
sloot.xpath2eval var:ex /string='ISOcat[NOT FOUND]' this:cond xslt2 var:msg ISOcat: Not Found

Not Found

The requested resource couldn't be found.

var:msg
copy 404 var:code
sloot.xpath2eval var:ex /string='ISOcat[METHOD NOT ALLOWED]' this:cond xslt2 var:msg ISOcat: Method Not Allowed

Method Not Allowed

This HTTP method isn't allowed for this resource.

var:msg
copy 405 var:code
sloot.xpath2eval var:ex /string='ISOcat[BAD REQUEST]' this:cond xslt2 var:msg ISOcat: Bad Request

Bad Request

Your request is invalid! Maybe a parameter is missing, or invalid?

var:msg
copy 400 var:code
sloot.xpath2eval var:ex /string='ISOcat[CONFLICT]' this:cond xslt2 var:msg ISOcat: Conflict

Conflict

This resource already exists.

var:msg
copy 409 var:code
sloot.xpath2eval var:ex /string='404' this:cond xslt2 var:msg ISOcat: Resource Not Found

Resource Not Found

Sorry, the resource '' couldn't be found. Update the reference or contact the ISOcat system administrator.

var:msg
copy 404 var:code
sloot.xpath2eval var:ex /string='ISOcat[UNKNOWN USER ACCOUNT]' this:cond xslt2 var:msg ISOcat: Resource Not Found

Resource Not Found

var:msg
copy 404 var:code
sloot.xquery declare variable $agent as node() external; declare variable $host as node() external; declare variable $referer as node() external; declare variable $param as node() external; <event when="{current-dateTime()}"> <source>{$host/string/text()}</source> <agent>{$agent/string/text()}</agent> <referer>{$referer/string/text()}</referer> {$param/error} </event> var:user-agent var:remote-host var:referer this:param var:log sloot.log ERR: the following error occurred: sloot.log var:msg dump var:log /errors/ var:log sloot.log ERR: this stack trace is (also) stored at: sloot.log var:log xslt2 var:msg ISOcat: Internal Server Error

Internal Server Error

Sorry, an error occured on the server.

The error is logged here ''. Mention this error log location when you contact the ISOcat system administrator.

var:log var:msg
copy 500 var:code
HTTPResponseCode var:msg var:code this:response cast this:response text/html this:response sloot.expire this:response now this:response declareIntermediate this:response this:response