Esempio n. 1
0
 @Override
 Object body() {
   return map(
       "errors",
       asList(
           map(
               "code",
               Status.Security.AuthorizationFailed.code().serialize(),
               "message",
               "Invalid username or password.")));
 }
Esempio n. 2
0
 @Override
 Object body() {
   return map(
       "errors",
       asList(
           map(
               "code",
               Status.Security.AuthorizationFailed.code().serialize(),
               "message",
               "No authorization header supplied.")));
 }