Fixed status code return when exception code is 0