Is your feature request related to a problem? Please describe.
for testing the various api failed case from status codes.
Describe the solution you'd like
there should a option while creating/edit an endpoint to return response with a custom status code.
Describe alternatives you've considered
Nill
Additional context
Nill