WP-API/WP-API — pull request #122 by wdbetts (2014-03-24 20:02:24+00:00)
Title: Return error if PHP_AUTH_USER is not set

Returning a null object when $_SERVER['PHP_AUTH_USER'] is not set allows processing of request to continue. Returning a WP_Error object will stop execution.