Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
OSDU - Aha Testing
Platform
System
Search
Commits
9134e7bc
Commit
9134e7bc
authored
Apr 28, 2021
by
neelesh thakur
Browse files
comments
parent
2756dbcf
Changes
1
Hide whitespace changes
Inline
Side-by-side
provider/search-azure/src/main/java/org/opengroup/osdu/search/provider/azure/security/RequestRejectedExceptionFilter.java
View file @
9134e7bc
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment