add a way to handle specific error codes