* [swift5] add URLResponse to ErrorResponse * [swift] improve unit tests * [swift] improve unit tests