Added sphinx documentation, added response object to exceptions