I have a simple upload-servlet and need to report if a file is illegal and has not been added. For some reason i am not allowed to give a html-body back, so i need to use the response-header.Unfortunately the X--response-headers should not be used anymore. So what response-header match my requirements? I daresay Warning may match best, but when the file is not added, its more likly a error than a warning.
Response Header for illegal file (format)
http;http response