Change to use 422 when we have an unsupported, but syntactically correct,

request.
This commit is contained in:
Andrew McMillan 2006-12-09 15:38:16 +13:00
parent d937c7988e
commit 6c50015eef
3 changed files with 3 additions and 3 deletions

View File

@ -98,7 +98,7 @@ if ( count($unsupported) > 0 ) {
}
$error = new XMLElement("error", new XMLElement( "LOCK",$badprops), array("xmlns" => "DAV:") );
$request->DoResponse( 403, $error->Render(0,'<?xml version="1.0" ?>'), 'text/xml; charset="utf-8"');
$request->DoResponse( 422, $error->Render(0,'<?xml version="1.0" ?>'), 'text/xml; charset="utf-8"');
}

View File

@ -318,7 +318,7 @@ if ( count($unsupported) > 0 ) {
}
$error = new XMLElement("error", new XMLElement( "propfind",$badprops), array("xmlns" => "DAV:") );
$request->DoResponse( 403, $error->Render(0,'<?xml version="1.0" ?>'), 'text/xml; charset="utf-8"');
$request->DoResponse( 422, $error->Render(0,'<?xml version="1.0" ?>'), 'text/xml; charset="utf-8"');
}
elseif ( $request->AllowedTo('read') ) {

View File

@ -214,7 +214,7 @@ if ( isset($unsupported) && count($unsupported) > 0 ) {
}
$error = new XMLElement("error", new XMLElement( "propfind",$badprops), array("xmlns" => "DAV:") );
$request->DoResponse( 403, $error->Render(0,'<?xml version="1.0" ?>'), 'text/xml; charset="utf-8"');
$request->DoResponse( 422, $error->Render(0,'<?xml version="1.0" ?>'), 'text/xml; charset="utf-8"');
}
else {