Skip to content

Custom error response. #1278

@GrzegorzRussek

Description

@GrzegorzRussek

Is your feature request related to a problem? Please describe.
I'm unable to add simple web page informing about service and it's purpose.

Describe the solution you'd like
I't would be best to provide ability to override response when handshake not in place. (no connection upgrade)
I would suggest adding Exception argument to generateHttpResponseDueToError method and:

Either make generateHttpResponseDueToError protected or invoke from it like this to get error code page:

    protected String getErrorCodeDescriptionPage(int errorCode, Exception exception) {
    }

Describe alternatives you've considered
I tried to approach this by using refection to tinker with generateHttpResponseDueToError metod in WebSocketImpl class with no working results.

Additional context
None

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions