Commit 9134e7bc authored by neelesh thakur's avatar neelesh thakur
Browse files

comments

parent 2756dbcf
......@@ -40,7 +40,7 @@ public class RequestRejectedExceptionFilter extends GenericFilterBean {
private void handleRequestRejectedException(HttpServletRequest request, HttpServletResponse response) throws IOException {
ObjectMapper mapper = new ObjectMapper();
ObjectNode node = mapper.createObjectNode();
node.put("code", org.apache.http.HttpStatus.SC_BAD_REQUEST);
node.put("code", HttpStatus.BAD_REQUEST.value());
node.put("reason", "Bad Request");
node.put("message", "Invalid URL was given on request");
String jsonErrorResponse = mapper.writeValueAsString(node);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment