package gp.e3.autheo.authentication.service.resources.commons;

import gp.e3.autheo.authentication.service.resources.UserResource;

import javax.ws.rs.core.Response;

public class HttpCommonResponses {
	
	public static Response getInvalidSyntaxResponse() {

		String errorMessage = UserResource.getStringInJsonFormat("The request cannot be fulfilled due to bad syntax. Please check the URL and the payload of the HTTP request.");
		return Response.status(400).entity(errorMessage).build();
	}
}
@@ -158,16 +158,38 @@
 esponse;
+%0Aimport java.util.Map;
 %0A%0Apublic
@@ -275,22 +275,35 @@
 () %7B%0A%0A%09%09
+Map%3C
 String
+, String%3E
  errorMe
@@ -345,16 +345,25 @@
 nFormat(
+%22error%22, 
 %22The req

Improve error message format.