Merging this commit to fix wrong error codes being sent: https://github.com/TryGhost/Ghost/commit/0f048eeb791ad3abc9af35dd654a1f55609b92c1#diff-68727d8c372f5be0614909a20c2b6b33