Catch exception when response_code is not an integer
Add validation for date parse