Sentinel icon indicating copy to clipboard operation
Sentinel copied to clipboard

Fix 3443 to set appropriate httpstatus codes and messages for different types of BlockException

Open Linzyoo opened this issue 1 year ago • 1 comments

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

Special notes for reviews

Linzyoo avatar Aug 24 '24 14:08 Linzyoo