Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Incorrect Page Status code

Avatar

Level 2

The below page doesn't exist but gives 200 status code.

 

curl -u admin:admin -I https://author.dev.demo.adobecqms.net/editor.html/content/demo/author-test-page.html 

 

I found these solutions

  1. https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-always-returns-200-sta... but I want something in curl.
  2. https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-custom-error-404-502-p...

Please help in finding a curl solution for getting status code

Thanks

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Your path is wrong, try with below command

 

curl -u admin:admin -I https://author.dev.demo.adobecqms.net/content/demo/author-test-page

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Your path is wrong, try with below command

 

curl -u admin:admin -I https://author.dev.demo.adobecqms.net/content/demo/author-test-page