error code added

error codes working