Skip to content

Instantly share code, notes, and snippets.

Created June 24, 2013 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5849463 to your computer and use it in GitHub Desktop.
Save anonymous/5849463 to your computer and use it in GitHub Desktop.
Jun 24, 2013 1:40:03 PM org.apache.http.impl.client.DefaultRequestDirector handleResponse
WARNING: Authentication error: Unable to respond to any of these challenges: {}
Jun 24, 2013 1:40:03 PM org.aerogear.unifiedpush.resteasy.RestEasyClient submitPayload
SEVERE: Receiving status code: 401
@matzew
Copy link

matzew commented Jun 24, 2013

      return Response.status(Status.UNAUTHORIZED)
              .header("WWW-Authenticate", "Basic realm=\"AeroGear UnifiedPush Server\"")
              .entity("Unauthorized Request")
              .build();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment