Related cases

500 -> Fail message. http://manage.dimagi.com/default.asp?149765#838590 
Closing alternative PR https://github.com/dimagi/commcare-hq/pull/5125 @czue 
Did `None` instead of error-stub. since it's easier to do checks from line 302-308.