java.lang.AssertionError: Status expected:<404> but was:<406>

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by marioja
, 2 years ago
Status expected:<200> but was:<404>
via Stack Overflow by sat1219
, 4 months ago
Status expected:<200> but was:<400>
via Stack Overflow by Unknown author, 2 years ago
Status expected:<200> but was:<400>
via Stack Overflow by tysonite
, 1 year ago
java.lang.AssertionError: Status expected:<404> but was:<406>
at org.springframework.test.util.AssertionErrors.assertEquals(
at org.springframework.test.web.servlet.result.StatusResultMatchers$10.match(
at de.zeb.control.application.xbrlstandalonevalidator.restservice.TaxonomyQueryControllerTest.taxonomyPackageDoesNotExist(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.testng.internal.MethodInvocationHelper.invokeMethod(
at org.testng.internal.Invoker.invokeMethod(
at org.testng.internal.Invoker.invokeTestMethod(
at org.testng.internal.Invoker.invokeTestMethods(
at org.testng.internal.TestMethodWorker.invokeTestMethods(
at org.testng.TestRunner.privateRun(
at org.testng.SuiteRunner.runTest(
at org.testng.SuiteRunner.runSequentially(
at org.testng.SuiteRunner.privateRun(
at org.testng.SuiteRunnerWorker.runSuite(
at org.testng.TestNG.runSuitesSequentially(
at org.testng.TestNG.runSuitesLocally(
at org.testng.remote.RemoteTestNG.initAndRun(
at org.testng.remote.RemoteTestNG.main(

Users with the same issue

Once, 11 hours ago
2 times, 1 day ago
4 times, 1 week ago
3 times, 2 weeks ago
12 times, 1 month ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.