From 7fae7737356b3511a5967c5aa599cb8facaa5601 Mon Sep 17 00:00:00 2001 From: Andrew McMillan Date: Wed, 6 Dec 2006 21:50:49 +1300 Subject: [PATCH] Correct response code per RFC2518 --- inc/caldav-MKCALENDAR.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/caldav-MKCALENDAR.php b/inc/caldav-MKCALENDAR.php index 8c14274c..0d73399b 100644 --- a/inc/caldav-MKCALENDAR.php +++ b/inc/caldav-MKCALENDAR.php @@ -26,7 +26,7 @@ if ( ! $qry->Exec("MKCALENDAR") ) { $request->DoResponse( 500, translate("Error querying database.") ); } if ( $qry->rows != 0 ) { - $request->DoResponse( 412, translate("A collection already exists at that location.") ); + $request->DoResponse( 405, translate("A collection already exists at that location.") ); } $sql = "INSERT INTO collection ( user_no, parent_container, dav_name, dav_etag, dav_displayname, is_calendar, created, modified ) VALUES( ?, ?, ?, ?, ?, ?, current_timestamp, current_timestamp );";