Sentinel
Sentinel copied to clipboard
Fix 3443 to set appropriate httpstatus codes and messages for different types of BlockException
Describe what this PR does / why we need it
This PR is to update DefaultExceptionHandler with appropriate httpstatus code and message for different types of BlockException.
Does this pull request fix one issue?
Fixes #3443
Describe how you did it
Create an enum for all BlockException and set appropriate httpstatus code and message.
Describe how to verify it
Add test cases for DefaultExceptionHandler