420 Method Failed When Cancelling a Number 420 Method Failed When Cancelling a Number

420 Method Failed When Cancelling a Number

Vonage API Support

Symptom

When canceling phone numbers using the Numbers API through the cancel endpoint, occasionally a 420 error response occurs with a status message "method-failed". 

Applies To

  • Numbers API

Resolution

  1. Make sure the number exists for purchase or cancel.
  2. Reduce the speed at which making API requests, which may also trigger this error.

Cause

When trying to buy or cancel a non-existing number or a number that has been owned by another account, the API request will respond with error 420 "method failed".