How to get custom http status text for ios using j2objc

58 Views Asked by At

I'm using HttpURLConnection.getResponseMessage() to get http status text. When the server responses with custom status text like HTTP/1.1 500 ItemNotFoundException, translated to objective c method returns standard message for status code 500 - Internal Server Error. Original java method returns ItemNotFoundException.

Will it be fixed in future releases?

1

There are 1 best solutions below

0
tball On

Please file an issue, with either a public URL that demonstrates this issue, or example code that's failing. While unit tests are ideal, most developers attach a simple Java command-line class (like HelloWorld) that succeeds using the JVM and fails after being translated into a macOS binary.