Send different responses depending on http code
Fix module update
Merge pull request #421 from Metaswitch/iss286

[Reviewer: Rob] Iss286