Skip to content

[FEATURE] Create boilerplate "not configured to handle" ExtensionRestResponse #245

@dbwiddis

Description

@dbwiddis

Is your feature request related to a problem?

This code is repeated in every Rest Handler:

return new ExtensionRestResponse(
    request,
    NOT_FOUND,
    "Extension REST action improperly configured to handle " + request.toString()
);

What solution would you like?

Create a method somewhere (ExtensionRestHandler default method? Static method on ExtensionRestResponse?) that takes the request as an argument and returns the result of the above instantiation.

What alternatives have you considered?

Copying and pasting the above in every Rest Handler implementation.

Do you have any additional context?

image

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions