Added in the check for 404 or 500 with proper notification