結果 : how to get the status code from exception in java