You should surely treat 500 the same as the other 5xx codes.