title: Writing HTTP 401, 404, 500 responses to nginx error log instead of access log
body: <p>I'm running the nginx 1.4.2 web server on a few of my servers and have noticed that all of the HTTP 401, 404 and 500 responses are being logged to the access log file instead of the error log file.</p>
  
  <p>Is there some way to configure nginx to log HTTP 401, 404 and 500 responses to the error log instead?</p>