Provide a default handler which resolves responses and rejects errors.