I want to code for success and internal server error response message in my controller class. I need format of code.
Please anyone please help me
I'm using springs. The message should be like this:
Create Term Successful :
{
"message": {
"type": "Success",
"code": "200",
"description": "Created successfully"
}
}
Create Term Unsuccessful :
{
"message": {
"type": "Internal Error",
"code": "500",
"description": "Create failed"
}
}
0 Answer(s)