? 1007866.patch
Index: auth/services_keyauth/services_keyauth.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/services/auth/services_keyauth/Attic/services_keyauth.inc,v
retrieving revision 1.1.2.8.2.18
diff -u -p -r1.1.2.8.2.18 services_keyauth.inc
--- auth/services_keyauth/services_keyauth.inc	7 Dec 2010 08:28:09 -0000	1.1.2.8.2.18
+++ auth/services_keyauth/services_keyauth.inc	27 Dec 2010 04:55:51 -0000
@@ -231,7 +231,7 @@ function _services_keyauth_authenticate_
   if ($method['auth'] && variable_get('services_use_sessid', TRUE)) {
     $sessid = array_shift($args);
     if (empty($sessid)) {
-      return t('Invalid sessid.');
+      return services_error(t('Invalid sessid.'), 401);
     }
     $session_backup = services_session_load($sessid);
   }
