Set HTTP status code on error

Fixes TryGhost/Ghost#1055