tomdesair / tus-java-server

Library to receive tus v1.0.0 file uploads in a Java server environment
MIT License
128 stars 60 forks source link

Providing our own error message #45

Open Lesrac opened 2 years ago

Lesrac commented 2 years ago

Expected Behaviour

When a call exceeds the defined MaxUploadSize we would like to provide our own error response, so that it matches our other responses made to the frontend.

Actual Behaviour

A (correct) 413 is returned with a predefined error message.

Question

Is there a way to define/use our own response in this case?