[LC] Remove unnecessary code to set 500 http status code