log.debug("OAuth Problem", e);
// XXX: for some reason invalid signature (like bad password) has a
// status code of 200. make it 401 unauthorized instead.
if (e.getProblem().equals("signature_invalid")) {
throw new UnauthorizedException(
i18n.tr("Invalid oauth unit or secret"));
}
Response.Status returnCode = Response.Status.fromStatusCode(e
.getHttpStatusCode());
String message = i18n.tr("OAuth problem encountered. Internal message is: {0}",