Method not allowed yielded wrong status code