bugfix for mock 500/502/503