Skip to content

E/12/161#27

Open
thushani92 wants to merge 3 commits into
fawzanm:masterfrom
thushani92:master
Open

E/12/161#27
thushani92 wants to merge 3 commits into
fawzanm:masterfrom
thushani92:master

Conversation

@thushani92
Copy link
Copy Markdown

Finished

*/
Student st = t.findStudent(id);
if(st == null){
return Response.status(HttpResponseCodes.SC_FOUND).entity("Error.Invalid ID.").build();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// Sending custom strings as a result is useless because these web services are consumed by client applications (means software not humans). Therefore remove entity("Error.Invalid ID.") completely and change the HTTP response code HttpResponseCodes.SC_FOUND to something that makes scene.

@thushani92
Copy link
Copy Markdown
Author

I changed the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants