Fixed error response bug and updated docs.