Body and headers are return is implemented for cases when http error occures