Hi Oskar,
Currently, we don't
have support for sending custom errors from server to client. However, you can
customize the error message "Invalid PDF file type or PDF file not found.
Please select a valid PDF file" on the client-side using the `defaultLocale`
property. So, we have provided a sample to demonstrate how to customize the
error message on the client-side.