josehernandezfintecheandomx commented on code in PR #2308:
URL: https://github.com/apache/fineract/pull/2308#discussion_r864968580


##########
fineract-provider/src/main/java/org/apache/fineract/infrastructure/core/data/ApiGlobalErrorResponse.java:
##########
@@ -72,7 +78,17 @@ public static ApiGlobalErrorResponse 
invalidTenantIdentifier() {
         globalErrorResponse.setHttpStatusCode("401");
         globalErrorResponse.setDeveloperMessage("Invalid tenant details were 
passed in api request.");
         
globalErrorResponse.setUserMessageGlobalisationCode("error.msg.invalid.tenant.identifier");
-        globalErrorResponse.setDefaultUserMessage("Invalide tenant identifier 
provided with request.");
+        globalErrorResponse.setDefaultUserMessage("Invalid tenant identifier 
provided with request.");
+
+        return globalErrorResponse;
+    }
+
+    public static ApiGlobalErrorResponse invalidInstanceTypeMethod(final 
String method) {
+        final ApiGlobalErrorResponse globalErrorResponse = new 
ApiGlobalErrorResponse();
+        globalErrorResponse.setHttpStatusCode("405");

Review Comment:
   Done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to