Changed :msg key to :response on all APIs and added proper timeout handling.