fixed issue with different response types other that Illuminate\Http\Response