KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Having the following code: @RequestMapping(value = "/system/login", method = RequestMethod.GET) public void login(@RequestBody Login login) { if(login.username == "test" && login.password == "test") { //return HTTP 200 } else { //return HTTP 400 } } I would like to return two different HTTP statuses based on my logic. What is the best way to achieve this?
Tags (comma-separated)
Save Edits
Cancel