Added return type ResponseFactory for better chaining
Merge pull request #6395 from xreal/patch-1

[5.0] Corrected `response` Return Types