Custom status code is not showing and always shows 200 OK.
i have a scenario where i need to validate account ID and display error message as "Invalid account ID" if account ID is invalid. I am able to validate and display message but i am not able to display my custom status code as 400. It always shows 200 OK. Can you help me on what changes i need to make this work? Thank You and looking for solution.
- Data without dates is working.
- Data with date is working but not showing custom status code as 400. Always shows default as 200 OK.