Shouldn't this be `{'code': 500, ...` ?