Fix post with no payload test. Now it returns the expected http status codes.