Change HTTP status in case of an exception for CSRecord