Better REST and exceptions