Added statuscode to the error logs.