ISAM LMI REST API – HTTP 405 Method not Allowed Error

When using the REST API to run some commands against an ISAM for Web/Mobile Appliance, I ran into an HTTP error code that wasn’t immediately obvious.

Status Code: 405 Method Not Allowed
HTTP Error Code 405 Method not allowed
HTTP Error Code 405 Method not allowed

There was no issue with the POST Method, but rather the headers that I sent. It’s vitally important that you send the “Accept” header indicating you can receive “application/json” response type.

As soon as you configure the correct headers:

HTTP Code 200 - Success!
HTTP Code 200 – Success!

Hope this helps!

REST API tests where run using Firefox plugin RESTClient.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

WordPress.com.

Up ↑

%d bloggers like this: