Add a error handler filtered by error code