Added error and response methods