set custom error response content for 401/403 errors