Remove unused ErrorUtils#unauthorized method
This commit is contained in:
parent
76e2b60250
commit
3bf8fde060
@ -15,11 +15,7 @@ public class ErrorUtils {
|
||||
public static Map<String, Object> notFound(String itemType, String id) {
|
||||
return error("Not found: " + itemType + " with id " + id + " cannot be found.");
|
||||
}
|
||||
|
||||
public static Map<String, Object> unauthorized(String permission) {
|
||||
return error("Unauthorized access: Permission \"" + permission + "\" required.");
|
||||
}
|
||||
|
||||
|
||||
public static Map<String, Object> invalidInput(String message) {
|
||||
return error("Invalid input: " + message);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user