def _unauthorized(code, handler):
    """ Return a HTTP error  """
    handler.set_status(code)
    handler._transforms = []
    handler.write('Unauthorized' if code == 401 else 'Forbidden')
    handler.finish()
    return False
