Add status code of 500 handling.