fixes error on trying to respond with http 401

Quick fix for Issue #3 raised.