You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JayakrishnanJK
changed the title
Giving success message as response with 200 success status code.
Giving success message as response with 201 success status code.
Sep 4, 2019
Hi
i want to give success message as return along with status code.
For returning an error we are using
reject(new Error(message));
{ "resourceType": "OperationOutcome", "text": { "status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><table border=\"0\"><tr><td style=\"font-weight: bold;\">error</td><td><pre>Email Already Exists</pre></td></tr></table></div>" }, "issue": [ { "severity": "error", "code": "exception", "diagnostics": "Email Already Exists" } ] }
and its working fine.
please help us to return a success message like below mentioned. while we resolve a resource like
resolve(composition_resource);
{ "resourceType": "OperationOutcome", "text": { "status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><table border=\"0\"><tr><td style=\"font-weight: bold;\">error</td><td><pre>Resource Created</pre></td></tr></table></div>" }, "issue": [ { "severity": "information", "code": "exception", "diagnostics": "Resource Created" } ] }
The text was updated successfully, but these errors were encountered: